home *** CD-ROM | disk | FTP | other *** search
- unit PopUp;
-
- interface
-
- uses
- Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, ComCtrls, ExtCtrls;
-
- type
- TFormPopUp = class(TForm)
- RichEditHelp: TRichEdit;
- ButtonExit: TButton;
- procedure ButtonExitClick(Sender: TObject);
- procedure FormActivate(Sender: TObject);
- private
- { Private declarations }
- public
- PopupRTFFileName: String;
- procedure SetFileName (FileName: String);
- { Public declarations }
-
- end;
-
- var
- FormPopUp: TFormPopUp;
-
- implementation
-
- uses Preview;
-
- {$R *.DFM}
-
- procedure TFormPopUp.ButtonExitClick(Sender: TObject);
- begin
- close;
- end;
-
- procedure TFormPopUp.SetFileName (FileName: String);
- begin
- PopupRTFFileName := FileName;
- end;
-
- procedure TFormPopUp.FormActivate(Sender: TObject);
- begin
- RichEditHelp.Lines.LoadFromFile(PopupRTFFileName);
- end;
-
- end.
-